reinject: Support --json and --json-error-messages
authorJoey Hess <joeyh@joeyh.name>
Mon, 8 May 2023 19:43:37 +0000 (15:43 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 8 May 2023 19:43:37 +0000 (15:43 -0400)
commit3d8f93dc0a9ef79beb77d57f5d7bf72b59493784
tree1676862adef7f9d01fcd76253e7eff4c453019e3
parent91b9915b095b964558d319ccd57cd332c9eb38b3
reinject: Support --json and --json-error-messages

Also fix support for operating on multiple pairs of files and keys.

Moved notAnnexed to inside starting, so error message will get into the json.

Cannot include the key in the starting as it's not known yet, so instead
add it to the json later.

Sponsored-By: the NIH-funded NICEMAN (ReproNim TR&D3) project
CHANGELOG
Command/Reinject.hs
doc/git-annex-reinject.mdwn
doc/todo/--json_for_unannex__and_ideally_any_other_command_.mdwn